package org.ws.lifebacklog.model;

import java.util.Date;

import android.database.Cursor;

public class Task {
	private long id;
	private long parentId;
	private int type;
	private int priority;
	private String title;

	private int estimate;
	private Date deadline;
	private Date completeDate;
	private Date remindDate;

	/**
	 * @param cur
	 */
	public Task(Cursor cur) {
		String title = cur.getString(cur.getColumnIndex("TITLE"));
		setTitle(title);
	}

	/**
	 * @param cur
	 */
	public Task() {

	}

	/**
	 * @return the id
	 */
	public final long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public final void setId(long id) {
		this.id = id;
	}

	/**
	 * @return the parentId
	 */
	public final long getParentId() {
		return parentId;
	}

	/**
	 * @param parentId the parentId to set
	 */
	public final void setParentId(long parentId) {
		this.parentId = parentId;
	}

	/**
	 * @return the type
	 */
	public final int getType() {
		return type;
	}

	/**
	 * @param type the type to set
	 */
	public final void setType(int type) {
		this.type = type;
	}

	/**
	 * @return the priority
	 */
	public final int getPriority() {
		return priority;
	}

	/**
	 * @param priority the priority to set
	 */
	public final void setPriority(int priority) {
		this.priority = priority;
	}

	/**
	 * @return the title
	 */
	public final String getTitle() {
		return title;
	}

	/**
	 * @param title the title to set
	 */
	public final void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @return the estimate
	 */
	public final int getEstimate() {
		return estimate;
	}

	/**
	 * @param estimate the estimate to set
	 */
	public final void setEstimate(int estimate) {
		this.estimate = estimate;
	}

	/**
	 * @return the deadline
	 */
	public final Date getDeadline() {
		return deadline;
	}

	/**
	 * @param deadline the deadline to set
	 */
	public final void setDeadline(Date deadline) {
		this.deadline = deadline;
	}

	/**
	 * @return the completeDate
	 */
	public final Date getCompleteDate() {
		return completeDate;
	}

	/**
	 * @param completeDate the completeDate to set
	 */
	public final void setCompleteDate(Date completeDate) {
		this.completeDate = completeDate;
	}

	/**
	 * @return the remindDate
	 */
	public final Date getRemindDate() {
		return remindDate;
	}

	/**
	 * @param remindDate the remindDate to set
	 */
	public final void setRemindDate(Date remindDate) {
		this.remindDate = remindDate;
	}

}
